package com.zpark.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: GatewayClientController
 * @Description:
 * @author: RZS
 * @date: 2022/12/5  15:36
 */
@RestController
public class GatewayClientController {

    @GetMapping("/user/fun1")
    public String fun1(){
        return "路径断言匹配规则";
    }

    @GetMapping("/fun2")
    public String fun2(){
        return "这是fun2方法";
    }

    @GetMapping("/user")
    public String fun3(){
        return "这是user路径下访问的fun3";
    }

    @GetMapping("/fun4")
    public String fun4(String name, String dc){
        return dc + "-------->" + name;
    }

    @GetMapping("/fun5")
    public String fun5(String name){
        return "-------->" + name;
    }

    @RequestMapping("/fun6")
    public String fun6(){
        return "请求方法断言工厂";
    }
}
